import { defineStore } from "pinia";
export const useCountStore= defineStore('count',{
    actions:{
        increment(val:number){
            this.myCount+=val;
        }
    }
    ,state(){
        return { myCount:6}
    }
    ,getters:{ //类似于计算属性
        minCount():number {
           return this.myCount *0.1
        }
        ,bigCount:(state):number => state.myCount*10
       
    }
})